package com.ruoyi.project.module.member.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 会员管理对象 tb_member
 * 
 * @author javen
 * @date 2020-12-27
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 密码 */
    private String password;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private String grade;

    /** 会员有效期 */
    @Excel(name = "会员有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expire;

    /** 会员状态 */
    @Excel(name = "会员状态")
    private String status;

    /** 剩余积分 */
    private Long points;

    /** 微信用户唯一标识 */
    private String openId;

    /** 微信用户头像 */
    private String avatar;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setGrade(String grade)
    {
        this.grade = grade;
    }

    public String getGrade()
    {
        return grade;
    }
    public void setExpire(Date expire)
    {
        this.expire = expire;
    }

    public Date getExpire()
    {
        return expire;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPoints(Long points)
    {
        this.points = points;
    }

    public Long getPoints()
    {
        return points;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("createTime", getCreateTime())
            .append("grade", getGrade())
            .append("expire", getExpire())
            .append("status", getStatus())
            .append("points", getPoints())
            .append("openId", getOpenId())
            .append("avatar", getAvatar())
            .toString();
    }
}
